package com.example.springbootasync.asyncTest;


import com.example.springbootasync.service.AsyncService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class test implements ApplicationRunner {
    @Autowired
    AsyncService service;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        service.add();
        service.sub();
    }
}
